

import request from "@/utils/axios";


enum Api {
  START_TPS = '/tps/start',
  GET_TPS_STATUS = '/tps/status',
  STOP_STATUS = '/tps/stop',
}

// 启动压测
export function startTpsApi(params: any) {
  return request({
    url: Api.START_TPS,
    method: 'post',
    data:params
  });
}
// 查看当前压测状态
export function getTpsStatusApi() {
  return request({
    url: Api.GET_TPS_STATUS,
    method: 'get',
  });
}
// 暂停压测
export function stopTpsApi() {
  return request({
    url: Api.STOP_STATUS,
    method: 'get',
  });
}
